
<?
	$profile = $user->user_profile;
?>
   <style>
.calender {
width:170px;
height:auto;
font-size:12px;
margin-right:14px;
background:url(calenderbg.gif) no-repeat right center #fff;
border:1px solid #397EAE;
padding:1px;
}

.calender ul {
list-style-type:none;
margin:0;
padding:0;
}

.calender .day {
background-color:#EDF5FF;
height:20px;
}

.calender .day li,.calender .date li {
float:left;
width:14%;
height:20px;
line-height:20px;
text-align:center;
}

.calender li a {
text-decoration:none;
font-family:Tahoma;
font-size:11px;
color:#333;
}

.calender li a:hover {
color:#f30;
text-decoration:underline;
}

.calender li a.hasArticle {
font-weight:700;
color:#f60!important;
}

.lastMonthDate,.nextMonthDate {
color:#bbb;
font-size:11px;
}

.selectThisYear a,.selectThisMonth a {
text-decoration:none;
color:#000;
font-weight:700;
margin:0 2px;
}

.calender .LastMonth,.calender .NextMonth {
text-decoration:none;
color:#000;
font-size:18px;
font-weight:700;
line-height:16px;
}

.calender .LastMonth {
float:left;
}

.calenderBody {
clear:both;
}

.calenderTitle {
text-align:center;
height:20px;
line-height:20px;
clear:both;
}

.today {
background-color:#ffa;
border:1px solid #f60;
padding:2px;
}

.today a {
color:#f30;
}

.calenderBottom {
clear:both;
border-top:1px solid #ddd;
text-align:left;
padding:3px 0;
}

.calenderBottom a {
text-decoration:none;
font-weight:700;
color:#000;
margin:2px!important;
}

.closeCalenderBox {
float:right;
border:1px solid #000;
background:#fff;
font-size:9px;
width:11px;
height:11px;
line-height:11px;
text-align:center;
overflow:hidden;
font-weight:400!important;
}

.calender .NextMonth,.calenderBottom a.closeCalender {
float:right;
}
   </style>
   <?
   $proviencd = $city = $town = '';
	if($profile->proviencd)$proviencd = $profile->proviencd;
	if($profile->city)$city = $profile->city;
	if($profile->town)$town = $profile->town;
	$birth = $profile->birth_year.'-'.$profile->birth_month.'-'.$profile->birth_day;
   ?>
   <script>
	var proviencd = "<?=$proviencd?>";
	var city = "<?=$city?>";
	var town = "<?=$town?>";
   </script>
	<div class="setting_content">
		<form action="/setting/base" method="post" id="setting-form">
			<div class="line"><label>昵称</label><input type="text"class="text" disabled name="user_name" value="<?=CHtml::encode($user->user_name)?>"></input></div>
			<div class="line"><label>邮箱</label><input type="text"class="text" disabled name="email" value="<?=CHtml::encode($user->email)?>"></input></div>
			<div class="line"><label>性别</label>
				<span class="span">
					<?if($profile->gender == 'man'):?>
					<input class="sex" type="radio" value="女" name="gender" /><label class="sex_label">女</label>
					<input Class="sex" type="radio" checked value="男" name="gender" /><label class="sex_label">男</label>
					<?else:?>
					<input class="sex" type="radio" checked value="女" name="gender" /><label class="sex_label">女</label>
					<input Class="sex" type="radio" value="男" name="gender" /><label class="sex_label">男</label>
					<?endif?>

				</span>
			</div>
			<div class="line"><label>生日</label><input type="text" class="text" name="birthday" style="width:80px;" value="<?=$birth?>" onfocus="HS_setDate(this)" /></div>
			<div class="line"><label>QQ</label><input type="text" class="text" name="qq" value="<?=$profile->qq?>"></input></div>
			<div class="line"><label>微博</label><input type="text" class="text" name="twitter" value="<?=$profile->twitter?>"></input></div>
			<div class="line"><label>个人主页</label><input type="text" class="text" name="web" value="<?=$profile->web?>"></input></div>

			<div class="line"><label>家乡</label>
				<span class="span">
					<select name="proviencd" id="Country" class="cur-plc" onchange="getSubAddr(this, $ID('Province') )">
						
					</select>

					<select id="Province" class="select" name="city" onchange="getSubAddr(this, $ID('City') )">
						
					</select>
					 <select id="City" name="town" onchange="getSubAddr(this, $ID('Town') )">
						<option value="99999999">
							-请选择-
						</option>
					</select>
					<select id="Town" >
						<option value="99999999">
							-请选择-
						</option>
					</select>

				</span></div>
			<div class="line"><label>手机</label><input type="text"class="text" name="phone" value="<?=$profile->phone?>"></input></div>
			<div class="line"><input class="submit_button" type="submit" value="" id="setting-submit"></input></div>
		</form>
	</div>
	
</div>
<!-- left end -->
<?$this->renderPartial('_user',array('user'=>$user))?> 
            
</div>
